import dayjs from "dayjs";
export const dateFormat = (val: any, format = "YYYY-MM-DD") => {
  if (isNaN(val)) {
    return val;
  }
  val = parseInt(val);
  return dayjs(val).format(format);
};
